import java.util.ArrayList;
import java.util.Collection;

public class SchoolClass extends ArrayList<Student> {
    private String name;
    private String number;

    public SchoolClass(String name, String number) {
        this.name = name;
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    public void show() {
        for (Student student : this) {
            System.out.println(student.toString());
        }
    }
}
